/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.gerenciadorfinanceiro.ejb.session.interfaces;

import java.util.List;
import javax.ejb.Local;

/**
 *
 * @author eduardo
 */
@Local
public interface IncomeSessionLocal {
    public List<org.gerenciadorfinanceiro.ejb.entity.Income> getIncomes(org.gerenciadorfinanceiro.ejb.entity.User u, int month, int year);
    public org.gerenciadorfinanceiro.ejb.entity.Income getIncomeById(int id);

    public void addIncome(org.gerenciadorfinanceiro.ejb.entity.Income i) throws org.gerenciadorfinanceiro.ejb.session.BusinessViolation;
    public void updateIncome(org.gerenciadorfinanceiro.ejb.entity.Income i) throws org.gerenciadorfinanceiro.ejb.session.BusinessViolation;
    public void deleteIncome(org.gerenciadorfinanceiro.ejb.entity.Income i) throws org.gerenciadorfinanceiro.ejb.session.BusinessViolation;

}
